package com.t235.gc.zuul.config;

import com.netflix.zuul.ZuulFilter;
import com.t235.gc.zuul.rbac.AuthFilter;
import org.springframework.cloud.netflix.zuul.filters.RouteLocator;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class ZuulFilterConfig {

    @Bean
    public ZuulFilter routeTimesFilter(RouteLocator routeLocator){
        return new AuthFilter(routeLocator);
    }

}